
import main from "../pages/main.js";
import student from "./stuRoutes/student.js";
import loginRoutes from "./loginRoutes/loginRoutes.js";

var routes = {
    '/main': {
        ...student,
        on: () => {
            new main('#content');
        }
    },
    ...loginRoutes,
};

//配置二级路由时使用forward
var router = Router(routes).configure({ recurse: 'forward' });
//初始化路由
router.init();

//设置 / 对应的路径  --> #/login
window.location.hash = window.location.hash || "#/login";